1ac48df82c9c382dff66d516de884e99b271da90,dropwizard-jobs-core/src/main/java/de/spinscale/dropwizard/jobs/Job.java,Job,Job,#,16
Before Change
private final Timer timer;
public Job() {
MetricRegistry registry = SharedMetricRegistries.getOrCreate("dropwizard-jobs");
timer = registry.timer(name(getClass(), getClass().getName()));
}
After Change
public Job () {
// get the metrics registry which was shared during bundle instantiation
this(SharedMetricRegistries.getOrCreate(DROPWIZARD_JOBS_KEY));
}
public Job(MetricRegistry metricRegistry) {